/************************************************************************
 * The code is owned by mainframer.cn and Shang Tao
 * Without aproval of mainframer.cn and Shang Tao, removing the copyright
 * infomation is regarded as invassion of proprietary copyright
 ***********************************************************************/
package com.mr.qa.util.mail;

import org.apache.struts.upload.FormFile;
public class Mail
{
    public Mail()
    {
    }
    private String from;
    private String fromPassword;//for authentication 2008.8.31
    private String to;
    private String cc;
    private String bcc;
    private String subject;
    private String body;
    private String filePath;//absolute file path
    private String url;
    private FormFile formFile;
    public void setFrom(String from)
    {
        this.from = from;
    }
    
    public String getFrom()
    {
        return from;
    }
    
    public void setTo(String to)
    {
        this.to = to;
    }
    
    public String getTo()
    {
        return to;
    }
    
    public void setSubject(String subject)
    {
        this.subject = subject;
    }
    
    public String getSubject()
    {
        return subject;
    }
    
    public void setBody(String body)
    {
        this.body = body;
    }
    
    public String getBody()
    {
        return body;
    }

    public void setCc(String cc)
    {
        this.cc = cc;
    }
    
    public String getCc()
    {
        return cc;
    }
    
    public void setBcc(String bcc)
    {
        this.bcc = bcc;
    }
    
    public String getBcc()
    {
        return bcc;
    }

    public void setFilePath(String filePath)
    {
        this.filePath = filePath;
    }
    
    public String getFilePath()
    {
        return filePath;
    }

    public void setUrl(String url)
    {
        this.url = url;
    }
    
    public String getUrl()
    {
        return url;
    }

    public void setFormFile(FormFile formFile)
    {
        this.formFile = formFile;
    }
    
    public FormFile getFormFile()
    {
        if(this.formFile != null)
        {
            if(this.formFile.getFileSize() == 0)
                return null;
        }
        return formFile;
    }

public void setFromPassword(String fromPassword)
{
    this.fromPassword = fromPassword;
}

public String getFromPassword()
{
    return fromPassword;
}
}
